package com.onlinesshop.mall.service.impl;

import com.onlinesshop.mall.dao.ImagesDao;
import com.onlinesshop.mall.pojo.Images;
import com.onlinesshop.mall.service.ImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yuyan
 * @version 1.0
 * @date 2019/12/26 18:31
 * @描述
 */
@Service
public class ImagesServiceImpl implements ImagesService {
    @Autowired
    private ImagesDao imagesDao;
    @Override
    public List<Images> findAllByProductId(int id) {
        return imagesDao.findAllByProductId(id);
    }
}
